package com.xingdata.jjxc.pushnavi;

import com.google.gson.Gson;


/**
 * Created by Administrator on 2016/9/12.
 */
public class ProtoMsg {
    public String action;
    public String content;

    public ProtoMsg(){

    }
    public ProtoMsg(String act,String content){
        this.action = act;
        this.content = content;
    }

    public static String toJsonString(ProtoMsg msg){
        Gson gson = new Gson();
        return gson.toJson(msg);
    }

    public static ProtoMsg fromJson(String str){
        Gson gson = new Gson();
        return  (ProtoMsg) gson.fromJson(str,ProtoMsg.class);
    }
}
